package com.design.structure.decorator.cainiao;

/**
 * @ProjectName: design
 * @Package: com.design.structure.decorator.cainiao
 * @ClassName: ShapeDecorator
 * @Author: shenaiguo
 * @Description:
 * @Date: 2020/9/6 0006 15:18
 */
// 步骤3
public abstract class ShapeDecorator implements  Shape{
    protected Shape decoratedShape;
    public ShapeDecorator(Shape decoratedShape){
        this.decoratedShape=decoratedShape;

    }
    @Override
    public void draw() {
        decoratedShape.draw();
    }
}
